<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>门诊信息</title>
<link href="../../../css/style.css" rel="stylesheet" type="text/css">
  <link href="../../../bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet">
<script language="javascript" src="../../../js/clientSideApp.js"></script>
<script language="JavaScript" type="text/javascript" src="../../../js/win_center.js"></script>
  <script src="../../../bootstrap-3.3.7-dist/js/jquery-3.4.1.min.js"></script>
  <script src="../../../bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<SCRIPT language=JavaScript type=text/JavaScript>
function windowOpen(theURL,winName,features,width,hight,scrollbars,top,left) 
{
  var parameter="top="+top+",left="+left+",width="+width+",height="+hight;
  if(scrollbars=="no")
 {parameter+=",scrollbars=no";}
  else
 {parameter+=",scrollbars=yes";}
  window.open(theURL,winName,parameter);
}
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" align="center" valign="bottom" class="td06"><table width="98%" border="0" cellspacing="3" cellpadding="0">
      <tr>
        <td width="15"><img src="../../../images/index_32.gif" width="9" height="9"></td>
        <td valign="bottom" class="title">欠款信息</td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table01">
  <tr> 
    <td align="center" class="td_top">病人姓名</td>
    <td class="td_top">押金</td>
    <td class="td_top">总费用</td>
    <td class="td_top">催款日期</td>
    <td class="td_top"></td>
  </tr>
  <input type="hidden" name="debts">

</table>
<table width="95%"  border="0" cellpadding="0" cellspacing="0" class="table02" align="center">
  <tr>
    <td height="30" align="right"><img src="../../../images/1.gif" width="4" height="5" align="absmiddle"> 首页　 <img src="../../../images/2.gif" width="3" height="5" align="absmiddle"> 上一页　 <img src="../../../images/2-2.gif" width="3" height="5" align="absmiddle"> 下一页　 <img src="../../../images/3.gif" width="4" height="5" align="absmiddle"> 末页　　共 1 页 1 条记录</td>
  </tr>
</table>
<h1 id="hh"></h1>
</body>
<script>
  $.ajax({
    url: "/feign/book/displayDebts",
    type: "get",
    dataType: "json",
    headers: {
      Accept: "application/json; charset=utf-8",
      Authorization: location.href.split("=")[1]
    },
    success:function (data) {
      $.each(data.data,function (index,data) {
        $("input[name='debts']").append("  <tr> \n" +
                "    <td align=\"center\" class=\"td_01\"><input type=\"hidden\" value=" + data.pid + ">" + data.pname + "</td>\n" +
                "    <td class=\"td_01\">" + data.inpdeposit + "</td>\n" +
                "    <td class=\"td_01\">" + data.allprice + "</td>\n" +
                "    <td class=\"td_01\">" + data.alldate + "</td>\n" +
                "  </tr>")
        establish2();
      })
    }

  })



  establish2();
  function establish2(){
    $("h1[id='hh']").before(
            "<div class='modal fade' id='exampleModalCenter4' tabindex='-1' role='dialog' aria-hidden='true'>"+
            "<div class='modal-dialog modal-dialog-centered' role='document'>"+
            "<div class='modal-content'>"+
            "<div class='modal-header text-center'>"+
            "<button type='button' class='close' data-dismiss='modal' aria-label='Close'>"+
            "<span aria-hidden='true'>&times;</span>"+
            "</button></div><div class='modal-body'><div class='login px-4 mx-auto mw-100'>"+
            "<form action='' method='post' enctype='multipart/form-data' id='goodsAdd'><div class='form-group'>"+
            // "<input class='browsers' list='browsers' placeholder='选择或输入添加商品类型'>"+
            "<label class='mb-2'>是否打印</label><br>"+
            "<button name='ton1' class='btn btn-primary submit mt-2'>确认</button> &nbsp"+
            "<button type='button' class='btn btn-primary submit mt-2=' data-dismiss='modal' aria-label='Close'>取消</button></div>"+
            "</form></div></div></div></div></div>"
    )
  }
</script>
</html>
